FROM registry.cn-beijing.aliyuncs.com/zh-private-image/supergateway-python:v0.1

COPY . /mcp_server/server_code
WORKDIR /mcp_server/server_code
RUN ["mkdir", "/mcp_server/tmp"]

RUN pip install fastapi uvicorn httpx -i https://pypi.tuna.tsinghua.edu.cn/simple/
# 安装 Nginx
RUN apk add --no-cache nginx && rm -rf /var/cache/apk/*

CMD ["python3", "app.py"]
